package com.wms.service;

import com.wms.entity.Admin;
import com.wms.entity.MyPage;
import com.wms.entity.Role;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

public interface AdminService extends BaseService<Admin> {

    Admin findByUsername(String username);

    void bindRole(Admin admin, Role role);

    void queryRolePage(MyPage<Admin> page);

    void deleteById(Long id);

    void deleteByIds(List<Long> ids);
}
